package com.myjob.dto;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Chen Yuan
 * @create 2021-03-22  9:32
 */
@Data
public class AuthTreeDto {
	/** 名称 */
	private String name;
	/** 是否 打开/折叠 */
	private Boolean open;
	/** 编号值 */
	private String id;
	/** 图标地址 */
	private Object ico;
	/** 是否选中 */
	private Boolean checked;
	/** 子节点 */
	private List<AuthTreeDto> children;
	/** 父节点值 */
	private String parentId;

	public AuthTreeDto(String name, String id, String parentId) {
		this.name = name;
		this.open = false;
		this.id = id;
		this.ico = false;
		this.checked = false;
		this.children = new ArrayList<>();
		this.parentId = parentId;
	}
}
